package com.ruoyi.gcgl.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ruoyi.common.core.text.Convert;
import com.ruoyi.gcgl.domain.YyProjectSqkpfp;
import com.ruoyi.gcgl.mapper.YyProjectSqkpfpMapper;
import com.ruoyi.gcgl.service.IYyProjectSqkpfpService;

/**
 * 申请开票发票项Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-09-04
 */
@Service
public class YyProjectSqkpfpServiceImpl implements IYyProjectSqkpfpService 
{
    @Autowired
    private YyProjectSqkpfpMapper gcProjectSqkpfpMapper;

    /**
     * 查询申请开票发票项
     * 
     * @param id 申请开票发票项主键
     * @return 申请开票发票项
     */
    @Override
    public YyProjectSqkpfp selectGcProjectSqkpfpById(Long id)
    {
        return gcProjectSqkpfpMapper.selectGcProjectSqkpfpById(id);
    }

    /**
     * 查询申请开票发票项列表
     * 
     * @param gcProjectSqkpfp 申请开票发票项
     * @return 申请开票发票项
     */
    @Override
    public List<YyProjectSqkpfp> selectGcProjectSqkpfpList(YyProjectSqkpfp gcProjectSqkpfp)
    {
        return gcProjectSqkpfpMapper.selectGcProjectSqkpfpList(gcProjectSqkpfp);
    }

    /**
     * 新增申请开票发票项
     * 
     * @param gcProjectSqkpfp 申请开票发票项
     * @return 结果
     */
    @Override
    public int insertGcProjectSqkpfp(YyProjectSqkpfp gcProjectSqkpfp)
    {
        return gcProjectSqkpfpMapper.insertGcProjectSqkpfp(gcProjectSqkpfp);
    }

    /**
     * 修改申请开票发票项
     * 
     * @param gcProjectSqkpfp 申请开票发票项
     * @return 结果
     */
    @Override
    public int updateGcProjectSqkpfp(YyProjectSqkpfp gcProjectSqkpfp)
    {
        return gcProjectSqkpfpMapper.updateGcProjectSqkpfp(gcProjectSqkpfp);
    }

    /**
     * 批量删除申请开票发票项
     * 
     * @param ids 需要删除的申请开票发票项主键
     * @return 结果
     */
    @Override
    public int deleteGcProjectSqkpfpByIds(String ids)
    {
        return gcProjectSqkpfpMapper.deleteGcProjectSqkpfpByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除申请开票发票项信息
     * 
     * @param id 申请开票发票项主键
     * @return 结果
     */
    @Override
    public int deleteGcProjectSqkpfpById(Long id)
    {
        return gcProjectSqkpfpMapper.deleteGcProjectSqkpfpById(id);
    }
}
